package com.smartStatus.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName : SysUserTenant
 * @Author : lby
 * @Date: 2021/3/17 10:25
 * @Description : 用户学校关联表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user_tenant")
@ApiModel(value = "SysUserTenant", description = "用户学校关联表")
public class SysUserTenant {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 学校id
     */
    @ApiModelProperty(value = "学校id")
    private Integer tenantId;


    @TableLogic
    private Integer delFlag;
}
